package cn.lyvust.shili11;

/**
 * Description:
 * date: 2021-4-27 19:40
 *
 * @author Guo_guo
 * @since JDK 1.8
 */
public class A {
    public void f() throws MyException2{
        try {
            g();
        } catch (MyException1 e) {
            e.printStackTrace();
            throw new MyException2();
//            throw new MyException2(e);
        }
    }
    public void g() throws MyException1{
        throw new MyException1();
    }
}
